<?php

/*************************************************************************

	FILE INCLUDE

**************************************************************************/
include_once '../lib/Template.class.php';
$debug_mode_value = 0;
checkLogin();



/*************************************************************************

	USER SCRIPT

***************************************************************************/
$userscript =<<<js
    <script type="text/javascript">
        <!--
		function submitForm(no){

			del=confirm("Are you sure you want to delete it?");

			if (del == true)
			{
				name="change_ner"+no;
				change_ner = document.getElementById(name).value;
				if(change_ner==""){
					alert("Please enter NE ID to be changed");
				}else{
					frm= document.getElementById("deleteForm");
					frm.ner_cd.value=no;
					frm.change_ner.value=change_ner;
					frm.submit();
				}
			}

		}
		function checkForm(){
			frm= document.getElementById("insertForm");
			if(frm.ner_nm.value==""){
				alert("Please enter NE name");
				return false;
			}else{
				return true;
			}
		}
        //-->
    </script>
js;


/*************************************************************************

		PAGE MAIN PROCESS

***************************************************************************/

$db->conn();
$query = "select * from ner_tb";
$list = $db->select($query);
$db->close();


/*************************************************************************

	TEMPLATE PROCESS

***************************************************************************/
$body = "NerManagement.html";

$tpl = new Template();
$tpl->setDefine($body);

$tpl->assign("list", $list);
$tpl->assign("selectTotal", $db->selectTotal);

$tpl->setPrint();





/*************************************************************************

	AJAX FUNCTION : Template_ function

***************************************************************************/



















?>
